<template>
  <div id="app">
    <!--这里是一级路由出口 keep-alive 仅对该出口的路由有效-->
    <keep-alive :include="cachePages">
      <router-view />
    </keep-alive>
  </div>
</template>

<script>
import { mapState } from "vuex";
export default {
  name: "App",
  computed: {
    ...mapState(["cachePages"])
  }
};
</script>

<style></style>
